//
//  SelectLevelLayer.h
//  MinusTheBox
//
//  Created by Chi Ho Chiu on 30/4/12.
//  Copyright 2012 Individual. All rights reserved.
//

#import <Foundation/Foundation.h>
#import "cocos2d.h"

@protocol SelectLevelLayerDelegate;

typedef enum
{
	//Reserve 1 - 1000 for level
	kTAG_MENU_ITEM_BACK = 1001,
	kTAG_SUB_LAYER_1_A	= 1002,
	kTAG_SUB_LAYER_1_B	= 1003,
	kTAG_SUB_LAYER_1_C	= 1004,
	kTAG_SUB_LAYER_1_D	= 1005,
	kTAG_SUB_LAYER_1_E	= 1006
} ESelectLevelLayerTag;


@interface SelectLevelLayer : CCLayer
{
    id<SelectLevelLayerDelegate> delegate;
	
	CCLayer *activeSubLayer;
	CCLayerColor *subLayer1;
	CCLayerColor *subLayer2;
	
	
}
@property (nonatomic, assign) id<SelectLevelLayerDelegate> delegate;

@property (nonatomic, assign) CCLayer *activeSubLayer;
@property (nonatomic, retain) CCLayerColor *subLayer1;
@property (nonatomic, retain) CCLayerColor *subLayer2;

-(void) onItemSelected:(id)sender;
-(void) initSubLayer1;
-(void) initSubLayer2WithLevel:(NSUInteger)level;

-(void) switchToSubLayer2WithLevel:(NSUInteger)level;
-(void) backToSubLayer1;
-(void) backToMainMenu;

@end


@protocol SelectLevelLayerDelegate
@end
